/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cratos.xxgram.platf.es;

import com.cratos.xxgram.platf.base.BaseBean;
import java.util.Map;
import org.redkale.util.Comment;

/**
 *
 * @author SquRab
 */
public class EsQuery extends BaseBean {
    

    private Query query;

    private Filtered filtered;

    @Comment("过滤条件")
    public static final class Filtered {

        private Filter filter;

        public static final class Filter {

            private Map<String, Object> range;

            public Map<String, Object> getRange() {
                return range;
            }

            public void setRange(Map<String, Object> range) {
                this.range = range;
            }

        }

        public Filter getFilter() {
            return filter;
        }

        public void setFilter(Filter filter) {
            this.filter = filter;
        }

    }

    @Comment("匹配条件")
    public static final class Query {

        private Map<String, Object> match;

        public Map<String, Object> getMatch() {
            return match;
        }

        public void setMatch(Map<String, Object> match) {
            this.match = match;
        }

    }

    public Query getQuery() {
        return query;
    }

    public void setQuery(Query query) {
        this.query = query;
    }

    public Filtered getFiltered() {
        return filtered;
    }

    public void setFiltered(Filtered filtered) {
        this.filtered = filtered;
    }

}
